﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NIF.MobileActors.Core
{
    [Serializable]
    public class ActorContext
    {
        public const int WAITING = 0;
        public const int EXECUTING = 1;
        public const int DEACTIVED = 2;
        public const int EXITED = 3;

        public ActorContext(IActor actor)
        {
            this.Actor = actor;
        }

        public bool IsActiving
        {
            get { return m_status != DEACTIVED; } 
        }

        public IActor Actor { get; private set; }

        public int m_status;
    }
}
